/*
 *This file contains general functions
 */

/*
 * This function creates a message when a student is added to group
 */
function message(studname, string){    
    var message = document.createElement('div');// Creates a div
    var name = document.createElement('p');     // Creates a p tag to display message
    message.setAttribute('class', 'add_messages');
    name.innerHTML = studname+string;    // display message
    message.appendChild(name);                      //add message to div    
    document.body.appendChild(message);
    $('.add_messages').fadeOut(6000, function() {
    });
}